﻿using DXApplicationTangche.UC.下单MTO.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.下单MTO
{
    public partial class FormMTO套号补货选门店 : DevExpress.XtraEditors.XtraForm
    {
        //所选门店
        public String storeName { get; set; }
        public CustomerPDTO customerPDTO;
        public FormMTO套号补货选门店()
        {
            InitializeComponent();
        }
        public FormMTO套号补货选门店(CustomerPDTO customerchoosePDTO)
        {
            InitializeComponent();
            this.customerPDTO = customerchoosePDTO;
        }

        private void comboBox选择门店_Click(object sender, EventArgs e)
        {
            if (this.comboBox选择门店.Text.Trim().Equals("凯丹"))
            {
                this.storeName = "凯丹";
                this.customerPDTO.customerName = "凯丹店";
                this.customerPDTO.mobile = "15989118911";
                this.customerPDTO.addressProvince = "辽宁省";
                this.customerPDTO.addressCity = "大连市";
                this.customerPDTO.addressDistrict = "中山区";
                this.customerPDTO.addressDetail = "凯丹广场二楼春衫定制";
            }
            else if (this.comboBox选择门店.Text.Trim().Equals("柏威年"))
            {
                this.storeName = "柏威年";
                this.customerPDTO.customerName = "柏威年店";
                this.customerPDTO.mobile = "15689118911";
                this.customerPDTO.addressProvince = "辽宁省";
                this.customerPDTO.addressCity = "大连市";
                this.customerPDTO.addressDistrict = "中山区";
                this.customerPDTO.addressDetail = "柏威年二楼春衫定制";
            }
        }

        private void simpleButton选择门店确认_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
